package com.redrose.audioandvideo.utils;

import com.redrose.audioandvideo.databinding.ActivityScrollBinding;
import com.redrose.audioandvideo.widget.RrScrollLayout;

public class ScrollUIControl {
    private static ScrollUIControl mInstance;
    private ActivityScrollBinding mBinding;
    private RrScrollLayout mRrScrollLayout;

    private ScrollUIControl() {
    }

    public static ScrollUIControl getInstance() {
        if(mInstance == null){
            mInstance = new ScrollUIControl();
        }
        return mInstance;
    }
    public void initScrollUIControl(ActivityScrollBinding binding){
        mRrScrollLayout = binding.rrScrollLayout;
        this.mBinding = binding;
    }
    public void statusMax(){
        mRrScrollLayout.openMax();
    }
    public void statusMid(){
        mRrScrollLayout.openMid();
    }
    public void statusMin(){
        mRrScrollLayout.openMin();
    }
}
